package com.maven.blog.mapper;


import com.maven.blog.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from user where user_name = #{username}")
    User selectByName(String username);

    @Select("select * from user where id = #{userId}")
    User selectById(Integer userId);
}
